# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-scummvm
pkgver=0_git20200328
pkgrel=0
_commit="440d5d37ed8b4e0f7d0e312b74cae1bf3506a8fd"
pkgdesc="ScummVM with libretro backend"
url="https://github.com/libretro/scummvm"
arch="all"
license="GPL-2.0-only"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/scummvm/archive/$_commit.tar.gz"
builddir="$srcdir/scummvm-$_commit"
options="!check" # No tests

build() {
	make -C backends/platform/libretro/build
}

package() {
	install -Dm644 backends/platform/libretro/build/scummvm_libretro.so \
		"$pkgdir"/usr/lib/libretro/scummvm_libretro.so
}

sha512sums="cad8d7fb8cbd917341c14e00a62fb241a2cf1fa4a6f2e61be9c4b95ca0eed071dc1d2323dc6d502fe4880350b171cda54ede54f00f8f311482aeb71748063d56  libretro-scummvm-440d5d37ed8b4e0f7d0e312b74cae1bf3506a8fd.tar.gz"
